﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>金属材料学登陆</title>
<link rel="icon" href="images_cn/favicon.ico" type="image/x-icon" />
<link href="admin/css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	overflow:hidden;
}
.btn1{background:url(admin/images/dl.gif) repeat-x; 
    border:1px solid #A1CAE0; 
    width:57px;
    height:20px;
    overflow:visible; 
    cursor: pointer;}
.btn2{background:url(admin/images/cz.gif) repeat-x; 
    border:1px solid #A1CAE0; 
    width:57px;
    height:20px;
    overflow:visible; 
    cursor: pointer;}
.STYLE3 {font-size: 12px; color: #adc9d9; }
-->
</style>
</head>
<body>
<form runat ="server">
<table width="100%"  height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#1075b1">&nbsp;</td>
  </tr>
  <tr>
    <td height="608" background="admin/images/login_03.gif"><table width="847" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="318" background="admin/images/login_04.gif">&nbsp;</td>
      </tr>
      <tr>
        <td height="84"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="381" height="84" background="admin/images/login_06.gif">&nbsp;&nbsp;
            </td>
            <td width="162" valign="middle" background="admin/images/login_07.gif">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="44" valign="bottom" style="height: 24px"><div align="right"><span class="STYLE3">用户</span></div></td>
                <td width="10" valign="bottom" style="height: 24px">&nbsp;</td>
                <td colspan="2" valign="bottom" style="height: 24px">
                  <div align="left">
                    <asp:TextBox ID="name" runat="server" style="width:100px; height:17px; background-color:#87adbf; border:solid 1px #153966; font-size:12px; color:#283439; "></asp:TextBox>
                    
                  </div></td>
              </tr>
              <tr>
                <td valign="bottom" style="height: 24px"><div align="right"><span class="STYLE3">密码</span></div></td>
                <td width="10" valign="bottom" style="height: 24px">&nbsp;</td>
                <td colspan="2" valign="bottom" style="height: 24px">                
                <asp:Textbox id="pwd" runat ="server"  style="width:100px; height:17px; background-color:#87adbf; border:solid 1px #153966; font-size:12px; color:#283439; " TextMode="Password" ValidationGroup='select name ,password from admin where name=" + name.ToString() + '></asp:Textbox> 
                </td>
              </tr> 
              <tr>
                <td valign="bottom" style="height: 24px"><div align="right"><span class="STYLE3">身份</span></div></td>
                <td width="10" valign="bottom">&nbsp;</td>
                <td width="52" height="24" valign="bottom">
                <asp:DropDownList ID="ddlType" runat="server" style="width:100px; height:17px; background-color:#87adbf; border:solid 1px #153966; font-size:12px; color:#283439; "  >
                    <asp:ListItem Selected="True">学生</asp:ListItem>
                    <asp:ListItem>管理员</asp:ListItem>
                </asp:DropDownList>
                </td>
              </tr>             
              <tr></tr>
            </table>
            </td>
            <td width="26"><img src="admin/images/login_08.gif" width="26" height="84"></td>
            <td width="67" background="admin/images/login_09.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="25"><div align="center">
                <asp:Button ID="btLogin"  runat="server"  CssClass="btn1" Height="20px" Width="57px" OnClick="btLogin_Click" />
                </div></td>
              </tr>
              <tr>
                <td style="height: 25px"><div align="center">
                <asp:Button ID="btReset"  runat="server"  CssClass="btn2" Height="20px" Width="57px" OnClick="btReset_Click" />
                </div></td>
              </tr>
            </table></td>
            <td width="211" background="admin/images/login_10.gif">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="206" background="admin/images/login_11.gif" valign="top" align="center" >
        <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label runat ="server"  id="lb1" Height="17px" ForeColor="Red"></asp:Label>
        </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td bgcolor="#152753">&nbsp;</td>
  </tr>
</table>
<div style=" display:none;">
<asp:TextBox ID="browserHeight" runat="server"  Text=""></asp:TextBox>
<script type = "text/javascript">

function getBodyHeight() {

  var myWidth = 0, myHeight = 0;

  if( typeof( window.innerWidth ) == 'number' ) {

    //Non-IE

    myWidth = window.innerWidth;

    myHeight = window.innerHeight;

  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {

    //IE 6+ in 'standards compliant mode'

    myWidth = document.documentElement.clientWidth;

    myHeight = document.documentElement.clientHeight;

  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {

    //IE 4 compatible

    myWidth = document.body.clientWidth;

    myHeight = document.body.clientHeight;

  }

  return myHeight;
}

document .getElementById ("browserHeight").value = getBodyHeight();

</script>
</div>
</form>
</body>
</html>
